package com.easylinkin.linkappapi.grid.models.query;

import com.easylinkin.core.models.IOperator;
import com.easylinkin.core.models.Operator;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 网格隐患查询
 *
 * @author kyj
 * @date 2024/5/28 13:57
 */
@ApiModel(description = "网格隐患查询")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GridHiddenDangerQuery implements IOperator, Serializable {
    /**
     * 网格id
     */
    @ApiModelProperty(value = "网格id", position = 1)
    private Long gridId;


    /**
     * 反馈人/创建时间
     */
    @ApiModelProperty(value = "反馈人/创建时间", position = 2)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 反馈文字/整改要求/检查项
     */
    @ApiModelProperty(value = "反馈文字/整改要求/检查项", position = 3)
    private String rectifyRequirements;

    /**
     * 状态：0：待整改，1：待复查，2：合格，3：无需整改'
     */
    @ApiModelProperty(value = "状态：0：待整改，1：待复查，2：合格，3：无需整改'", position = 4)
    private Integer status;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人", hidden = true)
    private Operator operator;
}
